package com.qianfeng.openapi.web.master.mapper;

import com.qianfeng.openapi.web.master.pojo.ApiMapping;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author LJF
 * @Date 2020/7/2 15:05
 * @Version 1.0
 */
@Repository
public interface ApiMappingMapper {

    int insertApiMapping(ApiMapping apiMapping);

    int updateApiMapping(ApiMapping apiMapping);

    int deleteApiMapping(Integer id);

    ApiMapping getApiMappingById(Integer id);

    List<ApiMapping> getAllApiMappings();


    void deleteApiMappings(Integer[] ids);

    List<ApiMapping> selectApiMappingByCondition(@Param("gatewayApiName") String gatewayApiName, @Param("state") Integer state);

}
